package com.minarto.controls {
	import scaleform.clik.controls.Button;

	/**
	 * @author KIMMINHWAN
	 */
	public class ButtonX extends Button {
		protected var _selectable:Boolean = false;
		
		
        [Inspectable(defaultValue="false")]
        public function get selectable():Boolean { return _selectable; }
        public function set selectable($v:Boolean):void {
            if (_selectable == $v) { return; }
            _selectable = $v;
			validateNow();
        }
		
		
		override public function toString():String {
            return "[minarto ButtonX " + name + "]";
        }
		
		
		override protected function handleClick($controllerIndex:uint = 0):void { 
			super.handleClick($controllerIndex);
			if (!_selectable) _focused = 0;
        }
	}
}
